import { createApp } from 'vue'
import App from './App.vue'
//@ts-expect-error忽略当前文件ts类型的检测否则有红色提示(打包会失败)
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

// 安装element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// style
import '@/styles/index.scss'
// svg配置代码
import 'virtual:svg-icons-register'
// 全局组件
import gloablComponent from './components/index'
// 路由
import router from '@/router/index'
// 仓库
import pinia from './store'
const app = createApp(App)
app.use(ElementPlus)
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(gloablComponent)
app.use(router)
app.use(pinia)
app.mount('#app')
